package com.guo.book1.compositereuse;

public class ProductDao {
    private DBConnection connection;

    public ProductDao(DBConnection connection) {
        this.connection = connection;
    }

    public void addProduct() {
        String conn = connection.getConnection();
       String format =  String.format("使用%s进行数据库连接", conn);
        System.out.println(format);
    }
}
